package com.wocao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wocao.entity.ReqBody;
import com.wocao.entity.ZyCommunity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 *小区 Service
 *
 * @since 2023-11-29
 */
public interface ZyCommunityService extends IService<ZyCommunity> {

    //分页查询+搜索
    Page<ZyCommunity> selectAllZyCommunitys(Page page, ReqBody reqBody);

    //添加
    void areaAdd(ZyCommunity zyCommunity);

    //修改
    void communityEdit(ZyCommunity zyCommunity);

    //导出
    void derive(HttpServletResponse response, String[] communityIds) throws IOException;

    //小程序-根据业主id查询
    List<ZyCommunity> selectAllByOwnerId(String userId);

    //更换物业
    void editDeptId(String communityId,String deptId);

}
